home *** CD-ROM | disk | FTP | other *** search
/ Monster Media 1996 #14 / Monster Media No. 14 (April 1996) (Monster Media, Inc.).ISO / lan / fsl212.zip / INSTALL.BAT < prev    next >
DOS Batch File  |  1996-01-08  |  11KB  |  256 lines

  1. ::
  2. ::  INSTALL.BAT for FSLOGIN v2
  3. ::
  4. @echo off
  5. cls
  6. if exist fslogin.ovl goto m_main
  7. echo    ╒══════════════════════════════════════════════════════════════════════╕
  8. echo    │                                                                      │
  9. echo    │ This batch file should be run from the same drive and directory      │
  10. echo    │ where the other files of the FSLOGIN package reside. Please change   │
  11. echo    │ the current drive and directory first.                               │
  12. echo    │                                                                      │
  13. echo    ╘══════════════════════════════════════════════════════════════════════╛
  14. echo\
  15. pause
  16. goto end
  17. ::
  18. :m_main
  19. ::
  20. cls
  21. echo    ╒══════════════════════════════════════════════════════════════════════╕
  22. echo    │ INSTALL.BAT                                               FSLOGIN v2 │
  23. echo    │                                                                      │
  24. echo    │ This batch file installs FSLOGIN on a server or on a workstation.    │
  25. echo    │                                                                      │
  26. echo    │ When a server installation has to be done, make sure you're logged   │
  27. echo    │ with a SUPERVISOR or EQUIVALENT account, because FSLOGIN files must  │
  28. echo    │ be copied to the SYS:LOGIN and SYS:PUBLIC directories.               │
  29. echo    │                                                                      │
  30. echo    │ F1 = Install on local disk    (usefull for evaluation by Supervisor) │
  31. echo    │                                                                      │
  32. echo    │ F2 = Install on server        (makes FSLOGIN available for users)    │
  33. echo    │                                                                      │
  34. echo    │ F3 = Update on server         (preserve FSLOGIN.INI, then install)   │
  35. echo    │                                                                      │
  36. echo    │ F9 = Quit this procedure                                             │
  37. echo    │                                                                      │
  38. echo    ╘══════════════════════════════════════════════════════════════════════╛
  39. echo\
  40. fk 1239
  41. if errorlevel 9 goto end
  42. if errorlevel 3 goto i_update
  43. if errorlevel 2 goto i_server
  44. if errorlevel 1 goto i_local
  45. ::
  46. :i_local
  47. ::
  48. cls
  49. echo    ╒══════════════════════════════════════════════════════════════════════╕
  50. echo    │ LOCAL INSTALL                                             FSLOGIN v2 │
  51. echo    │                                                                      │
  52. echo    │ The Local Installation option places all the FSLOGIN files in a      │
  53. echo    │ directory on a local hard disk. If you want to have a look at this   │
  54. echo    │ software without installing on a server, this is the option to use.  │
  55. echo    │                                                                      │
  56. echo    │ Once installed, FSLOGIN should be started with a command line option │
  57. echo    │ that 'tells' FSLOGIN to read it's INI file (FSLOGIN.INI) from the    │
  58. echo    │ local disk instead from the SYS:LOGIN directory.                     │
  59. echo    │ Since the INI file contains information that regular users should    │
  60. echo    │ not be able to change, this is an exception to the rule. In a normal │
  61. echo    │ operational environment the INI file is always taken from SYS:LOGIN. │
  62. echo    │                                                                      │
  63. echo    │ Continue?  'Y'es or 'N'o.                                            │
  64. echo    ╘══════════════════════════════════════════════════════════════════════╛
  65. yesno
  66. if NOT errorlevel 1 goto m_main
  67. ::
  68. :i_loc_2
  69. ::
  70. echo\
  71. what S "   Which directory to install: "
  72. if exist %WHAT%\nul goto i_loc_3
  73. echo\
  74. echo    Create this directory, 'Y'es or 'N'o?
  75. yesno
  76. if NOT errorlevel 1 goto i_loc_2
  77. md %WHAT%
  78. ::
  79. :i_loc_3
  80. ::
  81. set L_RET=i_loc_4
  82. goto l_menu
  83. ::
  84. :i_loc_4
  85. ::
  86. cls
  87. copy fslogin.* %WHAT%
  88. cd %WHAT%
  89. echo\
  90. echo    ╒══════════════════════════════════════════════════════════════════════╕
  91. echo    │ LOCAL INSTALL                                             FSLOGIN v2 │
  92. echo    │                                                                      │
  93. echo    │ The Local Installation is complete. Please start FSLOGIN with the    │
  94. echo    │ following command line option to use the locally installed files:    │
  95. echo    │                                                                      │
  96. echo    │ FSLOGIN !LI                 (actually this is case INsensitive...)   │
  97. echo    │                                                                      │
  98. echo    │ For more information see the readme.txt file that is part of the     │
  99. echo    │ archive file or the diskette.                                        │
  100. echo    │                                                                      │
  101. echo    ╘══════════════════════════════════════════════════════════════════════╛
  102. echo\
  103. goto end
  104. ::
  105. :i_server
  106. ::
  107. cls
  108. echo    ╒══════════════════════════════════════════════════════════════════════╕
  109. echo    │ SERVER INSTALL                                            FSLOGIN v2 │
  110. echo    │                                                                      │
  111. echo    │ The Server Installation option places the FSLOGIN files in the SYS:  │
  112. echo    │ LOGIN and the SYS:PUBLIC directories on the default server.          │
  113. echo    │                                                                      │
  114. echo    │ Use the Server Installation when you do not have a previously        │
  115. echo    │ installed version of FSLOGIN on the server, or when the previously   │
  116. echo    │ used version can be replaced by this new version. The old files are  │
  117. echo    │ NOT preserved in this case.                                          │
  118. echo    │                                                                      │
  119. echo    │                                                                      │
  120. echo    │ Continue?  'Y'es or 'N'o.                                            │
  121. echo    ╘══════════════════════════════════════════════════════════════════════╛
  122. yesno
  123. if NOT errorlevel 1 goto m_main
  124. ::
  125. :i_ser_2
  126. ::
  127. cls
  128. if exist sys:login\fslogin.*    flag sys:login\fslogin.*    n >nul
  129. if exist sys:public\fslogin.com flag sys:public\fslogin.com n >nul
  130. set  L_RET=i_ser_3
  131. goto l_menu
  132. ::
  133. :i_ser_3
  134. ::
  135. cls
  136. ncopy fslogin.*   sys:login
  137. ncopy fslogin.com sys:public
  138. ser_ver
  139. if errorlevel 4 goto nw_4
  140. ::
  141. :: This is the Netware 2.x and 3.x syntax of the FLAG command
  142. ::
  143. flag  sys:login\fslogin.* s
  144. flag  sys:public\fslogin.com s
  145. goto flag_done
  146. ::
  147. :nw_4
  148. ::
  149. :: This is the Netware 4.x syntax of the FLAG command
  150. ::
  151. flag  sys:login\fslogin.* sh
  152. flag  sys:public\fslogin.com sh
  153. ::
  154. :flag_done
  155. ::
  156. pause
  157. cls
  158. echo\
  159. echo    ╒══════════════════════════════════════════════════════════════════════╕
  160. echo    │ INSTALL                                                   FSLOGIN v2 │
  161. echo    │                                                                      │
  162. echo    │ The Installation is complete. Please refer to the README.TXT, or     │
  163. echo    │ better, the manual for more information.                             │
  164. echo    │                                                                      │
  165. echo    ╘══════════════════════════════════════════════════════════════════════╛
  166. echo\
  167. goto end
  168. ::
  169. :i_update
  170. ::
  171. cls
  172. echo    ╒══════════════════════════════════════════════════════════════════════╕
  173. echo    │ SERVER UPDATE                                             FSLOGIN v2 │
  174. echo    │                                                                      │
  175. echo    │ The Server Update option preserves the current FSLOGIN.INI, which    │
  176. echo    │ could contain valuable customization settings that you do not want   │
  177. echo    │ to loose. To play it save, it's even better to compare the contents  │
  178. echo    │ of the current INI file with the INI file that comes with this       │
  179. echo    │ version and makes modifications BEFORE running the Server Update     │
  180. echo    │ procedure.                                                           │
  181. echo    │                                                                      │
  182. echo    │ When updating from version 1 of FSLOGIN to version 2, the INI file   │
  183. echo    │ should be replaced.                                                  │
  184. echo    │                                                                      │
  185. echo    │ Continue?  'Y'es or 'N'o.                                            │
  186. echo    ╘══════════════════════════════════════════════════════════════════════╛
  187. yesno
  188. if NOT errorlevel 1 goto m_main
  189. ::
  190. :i_upd_2
  191. ::
  192. cls
  193. if exist sys:login\fslold.ini flag  sys:login\fslold.ini n 
  194. if exist sys:login\fslogin.ini ncopy sys:login\fslogin.ini sys:login\fslold.ini
  195. goto i_ser_2
  196. ::
  197. :l_menu
  198. ::
  199. cls
  200. echo    ╒══════════════════════════════════════════════════════════════════════╕
  201. echo    │ LANGUAGE                                                             │
  202. echo    │                                                                      │
  203. echo    │ FSLOGIN has support for several languages. Please select one of the  │
  204. echo    │ following languages.                                                 │
  205. echo    │ When installation is complete, you could check the file FSLOGIN.INI, │
  206. echo    │ and make modifications to various text items if needed.              │
  207. echo    │                                                                      │
  208. echo    │ F1 = English                                                         │
  209. echo    │                                                                      │
  210. echo    │ F2 = Dutch    / Nederlands                                           │
  211. echo    │                                                                      │
  212. echo    │ F3 = German   / Deutsch                                              │
  213. echo    │                                                                      │
  214. echo    │ F4 = French   / Francais                                             │
  215. echo    │                                                                      │
  216. echo    │ F9 = Quit this procedure                                             │
  217. echo    │                                                                      │
  218. echo    ╘══════════════════════════════════════════════════════════════════════╛
  219. echo\
  220. fk 12349
  221. cls
  222. if errorlevel 9 goto end
  223. if errorlevel 5 goto l_se
  224. if errorlevel 4 goto l_fr
  225. if errorlevel 3 goto l_de
  226. if errorlevel 2 goto l_nl
  227. if errorlevel 1 goto l_us
  228. ::
  229. :l_se
  230. ::
  231.     copy SE.* fslogin.* >nul
  232.     goto %L_RET%
  233. ::
  234. :l_fr
  235. ::
  236.     copy FR.* fslogin.* >nul
  237.     goto %L_RET%
  238. ::
  239. :l_de
  240. ::
  241.     copy DE.* fslogin.* >nul
  242.     goto %L_RET%
  243. ::
  244. :l_nl
  245. ::
  246.     copy NL.* fslogin.* >nul
  247.     goto %L_RET%
  248. ::
  249. :l_us
  250. ::
  251.     copy US.* fslogin.* >nul
  252.     goto %L_RET%
  253. ::
  254. :end
  255. ::
  256.